package com.standstill.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "q_stdl_queue")
public class RabbitReceiver {

    private Logger logger = LoggerFactory.getLogger(getClass());

    @RabbitHandler
    public void process(String message){
        logger.info("rabbit receive : " + message);
    }

}
